#include "forgetpassword.h"
#include "ui_forgetpassword.h"
ForgetPassword::ForgetPassword(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ForgetPassword)
{
    ui->setupUi(this);
    //定一个主界面
    login = new LoginAndRegistration;
    //去窗口边框
    setWindowFlags(Qt::FramelessWindowHint | windowFlags());
    //把窗口背景设置为透明;
    setAttribute(Qt::WA_TranslucentBackground);
    //连接按钮的槽函数
    connect(ui->toolButton,SIGNAL(clicked()),this,SLOT(on_toolButton_clicked()));
    connect(ui->toolButton_2,SIGNAL(clicked()),this,SLOT(on_toolButton_2_clicked()));
    connect(ui->toolButton_3,SIGNAL(clicked()),this,SLOT(on_toolButton_3_clicked()));
}

ForgetPassword::~ForgetPassword()
{
    delete ui;
}

void ForgetPassword::on_toolButton_3_clicked()
{
    hide();
    login->show();
}

void ForgetPassword::on_toolButton_clicked()
{
    showMinimized();
}

void ForgetPassword::on_toolButton_2_clicked()
{
    close();
}
